﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class StartPanel : MonoBehaviour
{
    
    void Start()
    {
        transform.Find("serverBtn").GetComponent<Button>().onClick.AddListener(() => {
            GameController.Instance.applicationType = SceneEnum.Server;
            GameController.LoadScene(SceneEnum.Server);
        });
        transform.Find("clientBtn").GetComponent<Button>().onClick.AddListener(() => {
            GameController.Instance.applicationType = SceneEnum.Client;
            GameController.LoadScene(SceneEnum.Client);
        });
    }
    void Update()
    {
        
    }
}
